package com.pactera.controller;

import com.pactera.remote.RemoteService;
import com.pactera.response.CommonReturnType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/pets")
public class PetsController extends BaseController {

    @Autowired
    private RemoteService remoteService;


    @RequestMapping(value = "/petList", method = {RequestMethod.GET})
    @ResponseBody
    public CommonReturnType petList() throws Exception {
        return CommonReturnType.create(remoteService.get());
    }

}
